@extends('public.index.layout')
@section('header')

    <h1>
        {{$content->con_name}}
    </h1>
@endsection

@section('content')
    <div class="box box-default">
        <div class="box-header with-border">
            <section class="content-header clearfix">
                <ol class="breadcrumb">
                    <li><a href="{{url('/')}}">首页</a></li>
                    <li>{{$content->novel->novelname}}</li>
                    <li class="active">{{$content->con_name}}</li>
                </ol>
            </section>
        </div>
        <div class="box-body">

            <article class="post clearfix">
                <header id="posthead" class="post-header clearfix">
                    <h1 id="nr_title" class="text-center post-title">{{$content->con_name}}</h1>

                    <p class="post-time text-center"><b>{{$content->novel->novelauthor}}</b>{{$content->novel->update_time}}<i
                                id="tipsA">Ctrl+D 收藏本站</i></p>

                    <div id="mydiv" class="nr_set text-center">
                        <span id="lightdiv" class="set1" onclick="nr_setbg('light')">关灯</span>
                        <span style="display:none;" id="huyandiv" class="set1" onclick="nr_setbg('huyan')">护眼</span>
                        <span id="fontsmall" class="set1" onclick="nr_setbg('small')">小</span>
                        <span id="fontmiddle" class="set1" onclick="nr_setbg('middle')">中</span>
                        <span id="fontbig" class="set1" onclick="nr_setbg('big')">大</span>
                        <span class="set1"><a name="StranLink" id="StranLink" href="javascript:StranBody()"
                                              title="點擊以繁體中文方式浏覽">繁</a></span>
                        <span class="set1"><a href="#anchor">直达底部</a></span>
                    </div>

                </header>


                <nav class="nav2 bbn mb2 clearfix">
                    <ul>
                        @if (isset($preContent))
                            <li class="prev pull-left">上一章：<a href="{{route('content',['id'=>$preContent->id])}}"
                                                    rel="prev">{{$preContent->con_name}}</a></li>
                        @endif
                        @if (isset($nextContent))
                            <li class="next pull-right">下一章：<a href="{{route('content',['id'=>$nextContent->id])}}"
                                                    rel="next">{{$nextContent->con_name}}</a></li>

                        @endif
                    </ul>
                </nav>
                <div id="nr1">
                    {!! $content->con_text !!}
                </div>


                <nav class="nav2 bbn mb4 clearfix">
                    <ul>
                        @if (isset($preContent))
                            <li class="prev pull-left">上一章：<a href="{{route('content',['id'=>$preContent->id])}}"
                                                              rel="prev">{{$preContent->con_name}}</a></li>
                        @endif
                        @if (isset($nextContent))
                            <li class="next pull-right">下一章：<a href="{{route('content',['id'=>$nextContent->id])}}"
                                                               rel="next">{{$nextContent->con_name}}</a></li>

                        @endif
                    </ul>
                </nav>


                <div class="mt4 clearfix"></div>


            </article>

        </div>
        <!-- /.box-body -->
    </div>
@endsection

@section('script')
    <script>

    </script>
@endsection